/*
 * LocalView.cpp
 *
 *  Created on: 05/06/2011
 *      Author: godinho
 */

#include <localview/LocalView.h>

LocalView::LocalView(std::string nodeId, int x, int y) {
	mNetwork = new Node(nodeId);
	mNetwork->setX(x);
	mNetwork->setY(y);
};

LocalView::~LocalView() {
	delete mNetwork;
}

Node* LocalView::getNetwork() {
	return mNetwork;
}

void LocalView::initTraversal() {

	std::vector<Node*>::iterator it;

	for(it = mNodes.begin(); it != mNodes.end(); it++) {
		(*it)->setTraversalStatus(0);
	}
}
